# user/urls.py
from django.urls import path, include

from rest_framework import routers
from rest_framework.routers import DefaultRouter

from crawler.views import CrawlerDataView, GetCrawlerProfileListView, GetGetCrawlerProfileByKeyboardView, \
	CheckGoodsByMonitoringView, AddGoodsToMonitoringView, MonitoringGoodsPriceView, StoreDataView

app_name = 'crawler'

urlpatterns = [
	path('crawler_data', CrawlerDataView.as_view(),name='crawler_data'),
	path('get_store_data', StoreDataView.as_view(),name='get_store_data'),
]
router = routers.SimpleRouter()
router.register(r'get_crawler_profile', GetCrawlerProfileListView)
router.register(r'get_crawler_profile_by_keyboard', GetGetCrawlerProfileByKeyboardView)
router.register(r'check_goods_by_monitoring', CheckGoodsByMonitoringView)
router.register(r'add_goods_to_monitoring', AddGoodsToMonitoringView)
router.register(r'monitoring_goods_price', MonitoringGoodsPriceView)
urlpatterns += router.urls